From bfe838b3c25d06b95bebab6e57a4578975af5296 Mon Sep 17 00:00:00 2001 From: robertl Date: Wed, 14 Nov 2007 16:15:56 +0000 Subject: [PATCH] Let csv formats warn for time formats that we can't parse. git-svn-id: http://gpsbabel.googlecode.com/svn/trunk@3012 f51c46e8-681c-474f-0cfe-069cfd0219fb --- gpsbabel/csv_util.c | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/gpsbabel/csv_util.c b/gpsbabel/csv_util.c index a612a60c9..f5dd1df8a 100644 --- a/gpsbabel/csv_util.c +++ b/gpsbabel/csv_util.c @@ -775,9 +775,14 @@ sscanftime( const char *s, const char *format, const int gmt ) else return mktime(&stm); } - + // Don't fuss for empty strings. + if (*s) { + warning("date parse of string '%s' with format '%s' failed.\n", + s, format); + } return 0; } + static time_t addhms( const char *s, const char *format ) -- 2.30.2